package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Xiao
 * @version 1.0
 * @description wm_material实体类
 * @date 2021/11/21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("wm_material")
public class WmMaterial {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//主键
    private Integer userId;//自媒体用户ID
    private String url;//图片地址
    private Integer type;//素材类型  0 图片 1 视频
    private Integer isCollection;//是否收藏
    private Date createdTime;//创建时间
}
